package com.cmc.cloud.cmclink.doc.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cmc.cloud.cmclink.doc.entity.VoyageBsaCbaDO;
import com.cmc.cloud.cmclink.doc.vo.voyagebsacbavo.VoyageBsaCbaAllocationSpaceVO;
import com.cmc.cloud.cmclink.doc.vo.voyagebsacbavo.VoyageBsaCbaPageReqVO;
import com.cmes.framework.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Class-based Allocation分类舱位 Mapper
 *
 * @author 集运管理员
 */
@Mapper
public interface VoyageBsaCbaMapper extends BaseMapperX<VoyageBsaCbaDO> {
    /**
     * 分类舱位
     *
     * @param page
     * @param reqVo
     * @return 分类舱位
     */
    IPage<VoyageBsaCbaDO> selectPageList(IPage<VoyageBsaCbaDO> page, @Param("reqVo") VoyageBsaCbaPageReqVO reqVo);

    /**
     * 分类舱位 预留舱位， 订舱人
     *
     * @param voyageBsaId
     * @return 分类舱位
     */
    List<VoyageBsaCbaAllocationSpaceVO> queryAllocationSpaceAndBookingParty(@Param("voyageBsaId") Long voyageBsaId);

}
